<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link href="/static/v5/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/static/v5/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/v5/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link href="/static/v5/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
    <link href="/static/v5/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/static/v5/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
    <title>权限管理</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 权限管理 <span class="c-gray en">&gt;</span> 角色管理 <span class="c-gray en">&gt;</span> 角色列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <th:block  th:each="funcion, funcionStat: ${funcions.obj.sonFuncion}">
        <div th:if="${funcion.func_name == '添加'}">
            <a th:href="${funcion.link_url + '?token='  + token}" >
                <button type="submit" class="btn btn-success radius" id="" name="">
                    <i class="Hui-iconfont">&#xe600;</i>添加
                </button>
            </a>
        </div>
    </th:block>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th class="head0" width="5%">id</th>
                <th class="head0" width="10%">名称</th>
                <th class="head0" width="10%">创建人</th>
                <th class="head0" width="10%">创建时间</th>
                <th class="head1" width="5%">操作</th>
            </tr>
            </thead>

                <tbody >
                <th:block  th:each="role: ${roles}">
                    <tr class="text-c" id="table">
                        <td th:text="${role.role_id}"></td>
                        <td th:text="${role.role_name}"></td>
                        <td th:text="${role.creater}"></td>
                        <td th:text="${#dates.format(role.create_time, 'yyyy-MM-dd')}"></td>
                        <td class="td-manage">
                            <th:block  th:each="funcion, funcionStat: ${funcions.obj.sonFuncion}">
                                <a th:if="${funcion.func_name == '更新'}"  th:href="${funcion.link_url + role.role_id  + '&token='  + token}">更新</a>
                            </th:block>
                        </td>
                    </tr>
                </th:block>
            </tbody>
        </table>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/v5/lib/jquery/1.9.1/jquery.min.js"></script>

</body>
</html>
